<div class="container-fluid" style="padding: 20px 10px 0px 10px">
    <div class="row-fluid">
        <div class="well">
            <ul class="nav nav-tabs">
                <?php $flag == 1? $name = '订单备注': $name = '客服备注'?>
                <?php $flag == 1? $url = '/order/addremark': $url = '/order/addServiceMark'?>
                <li class="active"><b><?=$name?></b></li>
            </ul>
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane active in" id="home">
                    <form id="formid" action="<?=$url?>" method="post">
                        <p>订单编号：<input type="text" value="<?=I('get.oid')?>" placeholder="订单编号" style="width: 250px" disabled /></p>
                        <p><?=$name?>：<textarea name="remark" placeholder="<?=$name?>" style="width:250px;height: 100px;margin-top:-19px;margin-left:70px">{{$remark['remark']}}</textarea></p>
                        <input type="hidden" value="1" name="dosubmit" />
                        <input type="hidden" value="<?=I('get.oid')?>" name="oid" />
                    </form>
                </div>
                <div class="btn-toolbar">
                    <button class="btn btn-primary" style="margin-left:72px" id="btn-save"><i class="icon-save"></i> 保存</button>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        $('#btn-save').click(function(){
            if(!$('textarea[name="remark"]').val()){
                showmsg('请输入备注');
                return false;
            }else{
                $('#formid').submit();
            }
        });
    });
</script>